package com.aboverock.module.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.aboverock.module.system.domain.Resource;
import com.aboverock.module.system.domain.Role;
import com.aboverock.module.system.domain.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Rock Wang
 * @since 2018-05-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * Gets the users by role id.
     *
     * @param roleId the role id
     * @return the users by role id
     */
    public List<User> getUsersByRoleId(String roleId);

    /**
     * Gets the resources by role id.
     *
     * @param roleId the role id
     * @return the resources by role id
     */
    public List<Resource> getResourcesByRoleId(String roleId);

}
